﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginSmall.aspx.cs" Inherits="WebSite.UserSetting.LoginSmall" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/logins.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/jquery-1.4.1.js"></script>
<script language="javascript" type="text/javascript" src="../js/loginsmall.js"></script>
</head>

<body>
    <form id="form1" runat="server">
  <div class="wrap w488">
<div class="content">
  <div class="content_c">
    <h2>用户登录</h2>
    <ul class="rlogin">
			<li><span class="l">用户名：</span>
 <input id="hidserverpath" type="hidden" value='<%=serverpath %>'/>
				<span class="r">
					<span class="input"><input name="username" id="username" type="text" tabindex="1" onfocus="totalLogin.setInit();" onkeypress="if(event.keyCode==13) {document.getElementById('login').click();return false;}"></span>
                    <em class="t_right" ></em><em class="t_wrong">用户名不能为空<em></em></em><label id="username_label">输入用户名</label>
				</span>
 
			</li>
            <li><span class="l">输入密码：</span>
				<span class="r">
					<span class="input"><input  name="password" id="password" type="password" tabindex="2" onfocus="totalLogin.setInit();" onkeypress="if(event.keyCode==13) {document.getElementById('login').click();return false;}"></span>
					<em class="t_right"></em><em class="t_wrong">密码不能为空<em></em></em><label id="password_label">输入密码6-16个字符</label>
				</span>
			</li>
            <li class="yhxy">
                <span class="l">&nbsp;</span>
				<span class="r">
					<input type="checkbox" tabindex="6" id="expire" name="expire" value="1" checked="checked"><p>下次自动登录<a target="_blank" href="../FindPassword.aspx">忘记密码？</a></p>
 
				</span>
			</li>
            <li class="zc">
                <span class="l">&nbsp;</span>
				<input type="button" tabindex="7" name="login" id="login" class="btnreg" value="立即登录"  onclick="totalLogin.login()">
               
			</li>
            <li class="line"></li>
             
  
            <li class="cwts" id="cwts" style='display:none;'>用户名或密码错误，请重新输入。<em></em></li>
   </ul>
 
   <p class="t_p" align="right">还没有友赢账号？<a href="javascript:void(0);" onclick="onregister()">马上注册>></a></p>

  </div>
</div></div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" src="../JS/CheckLoginValue.js"></script>
<script language="javascript" type="text/javascript">
    function onregister()
    {
        var hidserverpath = document.getElementById("hidserverpath");
        var serverpath = hidserverpath.value;
        //var returnurl = window.location.url;
        var returnurl = document.URL;
        var url = serverpath + '/Register.aspx?returnurl=' + returnurl;
        window.location.href(url);
    }
</script>